<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:composite="http://xmlns.jcp.org/jsf/composite" xmlns:p="http://primefaces.org/ui">

<h:body>

    <composite:interface>
        <composite:attribute name="header" required="true" />
        <composite:attribute name="widgetVar" required="true" />
    </composite:interface>

    <composite:implementation>
        <p:dialog id="#{cc.clientId}" header="#{cc.attrs.header}" widgetVar="#{cc.attrs.widgetVar}"
                  modal="true" closable="false" draggable="false" resizable="false" styleClass="app-dialog">
            <composite:insertChildren />
        </p:dialog>
    </composite:implementation>
</h:body>
</html>